package com.cowmooed.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云OSS配置属性类
 * 负责读取application.yml中的阿里云OSS基础配置
 */
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
public class AliyunOssProperties {

    /**
     * OSS服务端点
     */
    private String endpoint;

    /**
     * OSS访问密钥ID
     */
    private String accessKeyId;

    /**
     * OSS访问密钥
     */
    private String accessKeySecret;

    /**
     * OSS存储空间名称
     */
    private String bucketName;
}